package com.degratnik.plitki.activities;

import com.degratnik.plitki.R;
import com.degratnik.plitki.fragments.PlitkiFragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;


public class MainActivity extends FragmentActivity {
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        FragmentManager fm = getSupportFragmentManager();
        Fragment fragment = fm.findFragmentById(R.id.frame);
        if (fragment == null) {
        	fragment = new PlitkiFragment();
        	fm.beginTransaction().add(R.id.frame, fragment).commit();
        }
    }

   
}
